﻿<!doctype html>
<html>
<head>
<!--#include file="resource.html"-->
</head>
<body>
<!--#include file="nav.html"-->
<div class="showcontent">
  <div class="wtitle">
    <h1>{$contentInfo.title}</h1>
    <div class="oinfo">
      <span>时间：{date('Y-m-d H:i:s',$contentInfo['time'])}</span><span class="ml10">浏览：{$contentInfo.views}次</span>
    <span class="ml10"><a href="http://yikaiba.com">壹凯巴-网站开发-{$contentInfo.title}</a></span>
    </div>
    <small>编号：{default_data($contentInfo.number,"未填写")}</small>
  </div>
  <div class="incontent">
    <div class="imgcenter">
      <p><img src="{$contentInfo.image}" alt="{$contentInfo.title}" /></p>
    </div>
    
      <p><b>详细描述：</b></p>
      <p>{$contentInfo.content}</p>
  </div>
  <div class="btbox fn-clear">
    <div class="wface fn-left">
      <p>上一篇：<!--if{$nextInfo.title!=null}--><a href="{$nextInfo.aurl}">{$nextInfo.title}</a><!--{else}-->没有了<!--{/if}--></p>
	  <p>下一篇：<!--if{$prevInfo.title!=null}--><a href="{$prevInfo.aurl}">{$prevInfo.title}</a><!--{else}-->没有了<!--{/if}--></p>
    </div>
  </div>
  <div class="uyan">
    <div id="SOHUCS" sid="u2053"></div>
    <script charset="utf-8" type="text/javascript" src="../assets/js/changyan.js" ></script>
<script type="text/javascript">
    window.changyan.api.config({
        appid: 'cyrVIQX8H',
        conf: 'prod_5c1357557972b98c17b2c748d528888b'
    });
</script>   </div>
</div>
<!--#include file="footer.html"-->
<script type="text/javascript">
$(document).ready(function(e) {
	$(".category").hover(
	    function(){
		    $('.typebox').slideDown("fast");
		},
		function(){
		    $('.typebox').stop(true).slideUp("fast");
		}
	);
	$(".typebox").find('li').click(function(){
	    $(".catetext").text($(this).text());
		$("#catid").val($(this).attr("data-id"));
		$('.typebox').stop(true).slideUp("fast");
	});

});
function dian(ogj){
	// 点赞\踩
	var id      = $(ogj).attr("data-id");
	var field   = $(ogj).attr("class");
	var num     = parseInt($(ogj).find('em').text());
	var zanlist = $.cookie('ui_zanlist');
	var flag    = -1;
	if(zanlist != null){
		flag = zanlist.indexOf(id + ',');
	}
	if(flag < 0){
		$.ajax({
			type: "Post",
			url: "/Ui/setIncSec.html",
			data: {id:id,field:field},
			dataType: "json",
			error: function(){
			},
			success : function(data){
				if(data.status){
					$(ogj).find('em').text(num + 1);
					//点赞成功
					if(zanlist == null){
						zanlist = id + ',';
					}else{
						zanlist = zanlist + id + ',';
					}
					$.cookie('ui_zanlist', zanlist);
				}
			}
		});
	}else{
		alert('亲，你已经点过赞/踩咯!');
	}
}
</script>
</body>
</html>